package IO;

import objects.*;

public class CardLoader {
	
	
	public CardLoader(){
		
	}
	
	public BuildingCard[] loadBuildings(){
		BuildingCard[] loadedBuildings = new BuildingCard[0];
		return loadedBuildings;
	}
	
	public PalaceCard[] loadPalace(){
		PalaceCard[] loadedPalace = new PalaceCard[0];
		return loadedPalace;
	}
	
	public SoldierCard[] loadSoldiers(){
		SoldierCard[] loadedSoldiers = new SoldierCard[0];
		return loadedSoldiers;
	}
	
	public SettlementCard[] loadSettlement(){
		SettlementCard[] loadedSettlements = new SettlementCard[45];
		for (int i = 0; i < 14; i+=2) {
			loadedSettlements[i] = new SettlementCard(0, 5, 10, 5, 3, "Aussenposten", new CombatValue(3, 5));
			loadedSettlements[i+1] = new SettlementCard(0, 5, 10, 0, 1, "Zeltlager", new CombatValue(2, 2));
		}
		for (int i = 14; i < 20; i++) {
			loadedSettlements[i] = new SettlementCard(0, 25, 0, 0, 3, "Handelskarawane", new CombatValue(3, 3));
		}
		for (int i = 20; i < 30; i+=2) {
			loadedSettlements[i] = new SettlementCard(5, 10, 10, 0, 4, "Banditenlager", new CombatValue(5, 5));
			loadedSettlements[i+1] = new SettlementCard(5, 10, 0, 10, 8, "Wachturm", new CombatValue(2, 20));
		}
		for (int i = 30; i < 42; i+=3) {
			loadedSettlements[i] = new SettlementCard(10, 10, 10, 10, 10, "Stadt", new CombatValue(10, 2));
			loadedSettlements[i+1] = new SettlementCard(5, 5, 20, 5, 7, "Dorf", new CombatValue(8, 0));
			loadedSettlements[i+2] = new SettlementCard(10, 20, 0, 0, 6, "Herrenhaus", new CombatValue(6, 3));
		}
		for (int i = 42; i < 45; i++) {
			loadedSettlements[i] = new SettlementCard(20, 10, 10, 20, 12, "Burg", new CombatValue(3, 50));
		}
		return loadedSettlements;
	}
}
